package com.nuanshui.heatedloan.msgcenter.convert;

import com.nuanshui.heatedloan.msgcenter.form.AppPushMsgForm;
import com.nuanshui.heatedloan.middleware.msgcenter.bean.MsgBody;
import org.springframework.core.convert.converter.Converter;

public class MsgBodyToAppPushMsgConverter implements Converter<MsgBody,AppPushMsgForm> {
    @Override
    public AppPushMsgForm convert(MsgBody source) {


        AppPushMsgForm appPushMsg=new AppPushMsgForm();
        appPushMsg.setTitle(source.getMsgTitle());
        appPushMsg.setContent(source.getMsgContent());
        appPushMsg.setEnv(source.getEnv());
        appPushMsg.setUserIds(source.getBizUserId());
        //appPushMsg.setBadge(source.getParams().);

        return null;
    }
}
